home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Topik / Topik - Disk 16 - KnowAboutIt (19xx)(Topik Public Domain)(PD)[WB].zip / Topik - Disk 16 - KnowAboutIt (19xx)(Topik Public Domain)(PD)[WB].adf / ExecLib / test.c < prev    next >
C/C++ Source or Header  |  1989-09-16  |  512b  |  31 lines

  1.  
  2. #include <exec/types.h>
  3.  
  4. int FLamBase;
  5.  
  6.  
  7. void main()
  8. {
  9.   register int test;
  10.  
  11.     if ( !(FLamBase = OpenLibrary( "flam.library", 0 )))
  12.         {
  13.         printf("Open flam.library failed\n");
  14.         exit(20);
  15.         }
  16.  
  17.  
  18.     printf("OpenLib OK\n");
  19.  
  20.     test = fl_Plus( 13, 6 );
  21.     printf("fl_Plus() = %ld\n", test );
  22.     test = fl_Minus( 13, 6 );
  23.     printf("fl_Minus() = %ld\n", test );
  24.  
  25.  
  26.     CloseLibrary( FLamBase );
  27.     RemLibrary( FLamBase ); /* Optional - call the lib expunge routine */
  28.  
  29.     exit(0);
  30. }
  31.